package com.asset.admin.controller;

import com.asset.common.beans.IdParam;
import com.asset.user.sevice.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 用户管理controller
 * </p>
 *
 * @author 牧之
 * @date 2024/1/29 14:18
 */
@RestController
@RequestMapping("/admin")
@Slf4j
public class AssetAdminController {

    @Resource
    private IUserService userService;

    @ResponseBody
    @PostMapping("/admin")
    public void getUserById(@RequestBody IdParam param){
        userService.getUserById(param.getId());
    }
}
